package li.controller;

import li.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/product")
public class ProductCtrl {
    @Autowired
    ProductService ps;

    @RequestMapping("/selectSkuList")
    public List getProducts(){
        return ps.findAllProducts();
    }
}
